<%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2022/4/10
  Time: 15:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生管理端-管理端注册</title>
    <link rel="stylesheet" href="css/login.css"/>
</head>
<body>
<div class="title_div">
    <h1>学生管理系统-管理端注册</h1>
</div>
<%
    String status=request.getParameter("status");
%>

<div class="core_div">
    <form action="register" method="post">
        <table>
            <tr>
                <td>用户名</td>
                <td>
                    <input name="username" placeholder="请输入">
                    <%
                        if("2".equals(status)){
                    %>
                    <span class="error" >用户名不能为空</span>
                    <%
                        }
                    %>
                </td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input type="password" name="password" placeholder="请输入"></td>
            </tr>
            <tr>
                <td>重复密码</td>
                <td>
                    <input type="password" name="againpassword" placeholder="请输入">
                    <%
                        if("1".equals(status)){
                    %>
                    <span class="error" >两次密码输入不相同</span>
                    <%
                        }
                    %>
                </td>
            </tr>
            <tr>
                <td>真实姓名</td>
                <td><input type="password" name="name" placeholder="请输入"></td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    男: <input type="radio" name="sex" value="男" checked/>
                    女: <input type="radio" name="sex" value="女" />
                </td>
            </tr>
            <tr>
                <td>生日</td>
                <td><input type="date" name="birthday" /></td>
            </tr>
            <tr>
                <td>权限</td>
                <td>
                    <input type="checkbox" name="power" value="1"/>查看学生
                    <input type="checkbox" name="power" value="2"/>新增学生
                    <input type="checkbox" name="power" value="3"/>删除学生
                    <input type="checkbox" name="power" value="4"/>添加学生
                </td>
            </tr>
            <tr>
                <td>籍贯</td>
                <td>
                    <select name="jiguan">
                        <option value="1">广东省</option>
                        <option value="2">广西省</option>
                        <option value="3">湖南省</option>
                        <option value="4">湖北省</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <button type="submit" >注册</button>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <button  type="reset ">重置</button>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
